package seata.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import seata.dao.SeataTableTwoMapper;
import seata.entity.SeataTableTwo;
import seata.service.SeataTableTwoService;

@RestController
public class Provider8802Controller {
    @Autowired
    private SeataTableTwoMapper seataTableTwoMapper;

    @GetMapping("/c1")
    public String c1(){
        return seataTableTwoMapper.getSeataTableById(1).toString();
    }

    @GetMapping("/update")
    public String update(String name){
        seataTableTwoMapper.updateSeataTableById(1,name);
        return "success";
    }
}
